﻿using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace WcMatch.Models
{
    public class College
    {
        [JsonIgnore]
        public string UName { get; set; }

        [JsonIgnore]
        public string Pwd { get; set; }
            
        public string? CollegeName { get; set; }

        public string? CollegeId { get; set; }

        public int? Role { get; set; }

        [Key]
        public string Uid { get; set; }

        public College() {
            Uid = Guid.NewGuid().ToString();
        }

        public College(string uname, string pwd)
        {
            UName = uname;
            Pwd = pwd;
            Uid = Guid.NewGuid().ToString();
        }
    }
}
